<template>
  <TreeNode :node="node">
    <div class="header" slot="title">
      <span class="header-title">{{node.meta.name}}</span>
      <span class="header-desc">{{node.meta.addr}}</span>
    </div>
  </TreeNode>
</template>

<script>
import TreeNode from "./TreeNode";
export default {
  name: "WebapiTreeNode",
  props: {
    node: {
      type: Object,
      required: true,
    },
  },
  components: {
    TreeNode,
  },
};
</script>

<style lang="less" scoped>
.header {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  &-title {
    font-weight: 600;
  }
  &-desc {
    font-size: 12px;
    font-style: italic;
    color: #999;
  }
}
</style>
